package com.zzl.bonds.ticket.dto.bookrelation;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.apidoc.constants.RequiredType;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 联系人票关系表
 *
 * @author gull
 * @date 2021-12-07 16:29:41
 */
@Data
@ApidocModel
public class TicketBookRelationBatchAddDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @NotEmpty(message = "通讯录id集合不能为空")
    @ApidocModelProperty(description = "通讯录id集合"
            , required = RequiredType.TRUE)
    private List<String> addressBookIdList;
    /**
     * 异常申请时批量处理，统一改成list传参
     */
    @NotNull(message = "票据id不能为空")
    @ApidocModelProperty(description = "业务数据表主键，例：开立是传入开立票据id，转让时传入转让票据id",
            required = RequiredType.TRUE)
    private List<String> objIdList;
    @NotNull(message = "发送方式不能为空")
    @ApidocModelProperty(description = "消息发送类型：1短信，2邮件，3 短信和邮件"
            , required = RequiredType.TRUE)
    private Integer messageType;

    @NotNull(message = "联系人发消息业务类型不能为空")
    @ApidocModelProperty(description = "业务类型，1凭证开具，2凭证签收，3转让，4转让签收，5融资", required = RequiredType.TRUE)
    private Integer type;

}
